import Ember from 'ember';

export default Ember.Controller.extend({
  init: function () {
    var _self = this;
    console.log("body in init:", this.get("body"));
    console.log("public_vars:", public_vars);
    Ember.run.schedule("afterRender",this,function() {
      document.addEventListener('touchmove', function (e) {
        console.log("touchmove pre");
        e.preventDefault();
      },
      false);
      var scroll = new IScroll('#wrapper', { mouseWheel: true });
      // scroll.on("scrollStart",function () { console.log('scroll started'); });
      scroll.on("scrollEnd",function () { console.log('scroll end'); });
    });
  },
});
